查询爱心餐品牌信息
商户根据品牌ID查询爱心餐品牌的捐赠与供餐信息。
请求参数 | 类型 | 描述 |
---|---|---|
brand_id | string | 品牌ID |
php
$instance->v3->lovefeast->brands->_brand_id_->getAsync([
'brand_id' => '2250',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/lovefeast/brands/{brand_id}')->getAsync([
'brand_id' => '2250',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/lovefeast/brands/{brand_id}']->getAsync([
'brand_id' => '2250',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->lovefeast->brands->_brand_id_->get([
'brand_id' => '2250',
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/lovefeast/brands/{brand_id}')->get([
'brand_id' => '2250',
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/lovefeast/brands/{brand_id}']->get([
'brand_id' => '2250',
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典 | 类型 | 描述 |
---|---|---|
donate_count | number | 捐赠数量 |
consume_count | number | 供餐数量 |